package com.lyl.goods.mapper;

import com.lyl.goods.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AdminMapper {
    @Select("select * from user where username=#{username}")
    User find(String username);


    @Insert("insert into user(username, password, create_time) VALUES " +
            "(#{username},#{md5String},now())")
    void register(String username, String md5String);
}
